package br.org.etec.dotcao.model;

import java.util.Date;

import br.org.etec.dotcao.dao.Dao;
import br.org.etec.dotcao.dao.DaoFactory;

public class Main {
	
	public static void main(String[] args) {
		Dao<City> daoCity = DaoFactory.get(City.class);
		
		User user = new User();
		Address address = new Address();
		address.setCity(daoCity.get(1L));
		address.setNeighborhood("Jardim Popular");
		address.setNumber("861");
		address.setStreet("Alcides Gulini, 861");
		user.setAddress(address);
		user.setBirthday(new Date());
		user.setFirstname("Local");
		user.setLastname("");
		user.setPassword("102031");
		user.setUsername("rootlocal");
		user.save();
	}
}
